curl --request PUT \
--url https://api.topsort.com/public/v1/segment-service/segments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"segments": [
{
"name": "<string>",
"description": "<string>",
"id": "<string>"
}
]
}
'{
"segments": [
{
"name": "<string>",
"description": "<string>",
"id": "<string>",
"total": 123
}
]
}Upsert segments with the provided information.
curl --request PUT \
--url https://api.topsort.com/public/v1/segment-service/segments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"segments": [
{
"name": "<string>",
"description": "<string>",
"id": "<string>"
}
]
}
'{
"segments": [
{
"name": "<string>",
"description": "<string>",
"id": "<string>",
"total": 123
}
]
}A valid API key generated in Topsort's UI. Use the TSE API key if calling auctions or events API, otherwise use the TSC API key.
List of segments to update.
Show child attributes
Successful Response
List of segments.
Show child attributes
Was this page helpful?